/* 
 *  <copyright file="IEventRouter.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;
using System.Collections.Generic;

using SobrietyEngine.Guids;

namespace SobrietyEngine.Events
{
    public interface IEventRouter
    {
        Boolean LogRaisedEvents { get; set; }
        Boolean LogProcessedEvents { get; set; }
        List<String> LogEventIgnore { get; set; }
        int EventCount { get;}
        void ProcessEvents();
        void ProcessEvent(Event e);
        
        void RaiseEvent(Object raisedBy, IEventData eventData, CGuid from);
        void RaiseEvent(Object raisedBy, IEventData eventData);
        //void RaiseEvent(RaiseLogEvent e);
        //void RaiseEventNow(RaiseLogEvent e);
        
        void ClearEvents();
        void ClearEventListeners();
        void AddEventListener(Type eventType, IEventListener el);
        void RemoveEventListener(IEventListener el);
        void RemoveEventListener(Type eventType, IEventListener el);
        void RemoveEventListener(CGuid guid);
    }
}
